<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<title>首页</title>

		<link href="AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
		<link href="AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />

		<link href="basic/css/demo.css" rel="stylesheet" type="text/css" />

		<link href="css/hmstyle.css" rel="stylesheet" type="text/css"/>
		<link href="css/skin.css" rel="stylesheet" type="text/css" />
		<script src="AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
	</head>
	<body>
		<div class="hmtop">
				<!--顶部导航条 -->
			<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						<div class="menu-hd">
						<c:if test="${empty sessionScope.user_email}">
							<a href="<%=basePath %>Login.jsp" target="_top" class="h">亲，请登录</a>&nbsp;|
							<a href="Register.jsp" target="_top">免费注册</a>
						</c:if>	
						<c:if test="${!empty sessionScope.user_email}">
							<span>欢迎您${sessionScope.user_email}</span>&nbsp;&nbsp;
							<a href="<%=basePath %>loginOut.do" target="_parent">注销</a>
						</c:if>	
						</div>
					</div>
				</ul>
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a href="<%=basePath %>login.do?type=spQuery" target="_top" class="h">商城首页</a></div>
					</div>
					<c:if test="${empty sessionScope.user_email}">
						<div class="topMessage my-shangcheng">
							<div class="menu-hd MyShangcheng"><a href="Login.jsp" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
						</div>
					</c:if>
					<c:if test="${userInfo.type==0}">
						<div class="topMessage my-shangcheng">
							<div class="menu-hd MyShangcheng"><a href="<%=basePath %>personal/personalInfo.jsp" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
						</div>
					</c:if>
					<c:if test="${userInfo.type==1}">
						<div class="topMessage my-shangcheng">
							<div class="menu-hd MyShangcheng"><a href="<%=basePath %>personal/index.jsp" target="_top"><i class="am-icon-user am-icon-fw"></i>管理中心</a></div>
						</div>
					</c:if>		
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd" href="<%=basePath %>shopcart.do?type=query" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
					</div>
					<div class="topMessage favorite">
						<div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
				</ul>
				</div>
			</div>
		
		</div>
		
		
	</body>
</html>
